using UnityEngine;
using UnityEngine.UI;

namespace PKGames
{
	public sealed class VoxelWorldSelectorGridLayouter : HorizontalGridLayouter
	{
		private const float _minAspectRatio = 1.33333337f;

		private const float _maxAspectRatio = 1.77777779f;

		private const float _minCellSizeProportion = 0.657f;

		private const float _maxCellSizeProportion = 0.657f;

		private const float _minCellHorizontalSpaceProportion = 0.0773f;

		private const float _maxCellHorizontalSpaceProportion = 0.0773f;

		private const float _minTopMarginProportion = 0.2126f;

		private const float _maxTopMarginProportion = 0.2126f;

		private const float _minBottomMarginProportion = 0.1304f;

		private const float _maxBottomMarginProportion = 0.1304f;

		private const float _minHorizontalMarginProportion = 0.0652f;

		private const float _maxHorizontalMarginProportion = 0.0652f;

		public override float MinAspectRatio => 1.33333337f;

		public override float MaxAspectRatio => 1.77777779f;

		public override float MinCellSizeProportion => 0.657f;

		public override float MaxCellSizeProportion => 0.657f;

		public override float MinCellHorizontalSpaceProportion => 0.0773f;

		public override float MaxCellHorizontalSpaceProportion => 0.0773f;

		public override float MinTopMarginProportion => 0.2126f;

		public override float MaxTopMarginProportion => 0.2126f;

		public override float MinBottomMarginProportion => 0.1304f;

		public override float MaxBottomMarginProportion => 0.1304f;

		public override float MinHorizontalMarginProportion => 0.0652f;

		public override float MaxHorizontalMarginProportion => 0.0652f;

		public VoxelWorldSelectorGridLayouter(RectTransform cellAnchor, GridLayoutGroup cellGrid, RectTransform content, float numberOfCells, RectTransform viewport, CanvasScaler canvasScaler)
		{
			base.cellAnchor = cellAnchor;
			base.cellGrid = cellGrid;
			base.content = content;
			base.numberOfCells = numberOfCells;
			base.viewport = viewport;
			base.canvasScaler = canvasScaler;
		}
	}
}
